/*
 * ----------------------------------------------------------------------------
 *  (C) Copyright European Telecommunications Standards Institute, 2001.
 *  All Rights Reserved.
 *
 *  All copies of this program, whether in whole or in part, and whether
 *  modified or not, must display this and all other embedded copyright
 *  and ownership notices in full.
 *
 * ----------------------------------------------------------------------------
 */
package org.etsi.ttcn.tri;

import java.io.Serializable;

/**  
     A value of type TriAddressType indicates a source or destination
     address within the SUT. This abstract type can be used in TRI
     communication operations and is an open type which is opaque to
     the TE [TTCN-3].
*/

public interface TriAddress extends Serializable {
    
    /** Returns the encoded address.
     */
    public byte[]  getEncodedAddress();

    /** Set the encoded address of this TriAddress to address.
     */
    public void    setEncodedAddress(byte[] address);

    /** Compares address with this TriAddress for equality. Returns
	true if and only if have the same encoded representation,
	false otherwise.
    */
    public boolean equals(TriAddress address);
}
